<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0,maximun-scale=1.0,user-scalable=no">
    <link rel="stylesheet" href="assets/mui/css/mui.min.css">
    <link rel="stylesheet" href="assets/FontAwesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="css/base.css">
    <link rel="stylesheet" href="css/search-result.css">
    <title>乐淘商城</title>
</head>
<!-- http://127.0.0.1:3000/mobilenew/search-result.html -->

<!-- http://127.0.0.1:3000/m/search-result.html -->

<body>

    <!-- 头部区域 -->
    <header id="header" class="mui-bar mui-bar-nav my-header ">
        <h1 class="mui-title">搜索结果</h1>
        <a class="mui-icon mui-icon-left-nav mui-pull-left color_white" href="javascript:history.back()"></a>
    </header>

    <div id="refreshContainer">
        <div>
            <div class="search mui-clearfix">
                <input type="search" placeholder="请输入商品名称" id="search-in">
                <button id="search-btn" class="mui-btn mui-btn-primary">搜索历史</button>
            </div>
            <ul class="selector mui-clearfix ">
                <li>
                    <span>上架时间</span>
                    <span class="mui-icon-arrowdown mui-icon"></span>
                </li>
                <li>
                    <span id="priceSort">价格</span>
                    <span class="mui-icon-arrowdown mui-icon"></span>
                </li>
                <li>
                    <span>库存</span>
                    <span class="mui-icon-arrowdown mui-icon"></span>
                </li>
                <li>
                    <span>折扣</span>
                    <span class="mui-icon-arrowdown mui-icon"></span>
                </li>
            </ul>
            <!-- 商品展示列表 -->
            <ul class="good-list mui-clearfix " id="good-Item">

            </ul>
        </div>
    </div>
    <!-- 底部区域 -->
    <nav class="mui-bar mui-bar-tab">
        <a class="mui-tab-item " href="index.html">
            <span class="mui-icon mui-icon-home "></span>
            <span class="mui-tab-label">首页</span>
        </a>
        <a class="mui-tab-item" href="category.html">
            <span class="mui-icon mui-icon-email mui-active"></span>
            <span class="mui-tab-label">分类</span>
        </a>
        <a class="mui-tab-item" href="login.html">
            <span class="mui-icon mui-icon-contact"></span>
            <span class="mui-tab-label">购物车</span>
        </a>
        <a class="mui-tab-item" href="login.html">
            <span class="mui-icon mui-icon-gear"></span>
            <span class="mui-tab-label">会员中心</span>
        </a>
    </nav>

    <script src="assets/zepto/zepto.min.js"></script>
    <script src="assets/mui/js/mui.min.js"></script>
    <script src="js/base.js"></script>
    <script src="js/search-result.js"></script>
    <script src="assets/artTemplate/template-native.js"></script>
    <script type="text/template" id="searchTpl">
        <%for(let  i=0;i<data.length;i++){%>
            <li class="good-item">
                <a href="detail.html?id=<%=data[i].id%>">
                    <div class="pic"><img src="<%=data[i].pic[0].picAddr%>" alt=""></div>
                    <p class="good-title">
                        <%=data[i].proName%>
                    </p>
                    <div class="price mui-pull-left">
                        <span class="new-price"><%=data[i].price%></span>
                        <span class="old-price"><%=data[i].oldPrice%></span>
                    </div>
                    <div class="num">
                        <span>库存<%=data[i].num%></span>
                    </div>
                    <button class="buy-now mui-btn mui-btn-primary">立即购买</button>
                </a>
            </li>
            <%}%>
    </script>
</body>

</html>